uClock = AceLibrary("AceAddon-2.0"):new("AceDB-2.0", "AceEvent-2.0", "FuBarPlugin-2.0")
uClock.date = ("$Date: 2008-01-05 13:54:28 +0000 (Sat, 05 Jan 2008) $"):match("%d%d%d%d%-%d%d%-%d%d")
uClock.revision = ("$Revision: 57912 $"):match("%d+")
uClock.blizzardTooltip = true
uClock.cannotHideText = true

uClock:RegisterDB("uClockDB")

function uClock:OnEnable()
	self:ScheduleRepeatingEvent(self.UpdateDisplay, 1, self)
end

function uClock:OnTextUpdate()
	self:SetText(date("%H:%M:%S"))
end

function uClock:OnTooltipUpdate()
	GameTooltip:SetText(date("%A, %B %d, %Y"))
end
